package com.hospitalsystem.entity;

import java.io.Serializable;

/**
 * (Doctor)实体类
 *
 * @author makejava
 * @since 2024-12-28 19:32:19
 */
public class Doctor implements Serializable {
    private static final long serialVersionUID = 324864764056200022L;
    
    private String dId;
    
    private String name;
    
    private String password;
    
    private String gender;
    
    private String phone;
    
    private String type;
    
    private String department;

    private Integer remainingSlots = 10;


    public String getDId() {
        return dId;
    }

    public void setDId(String dId) {
        this.dId = dId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public int getRemainingSlots() {
        return remainingSlots;
    }

    public void setRemainingSlots(int remainingSlots) {
        this.remainingSlots = remainingSlots;
    }

    public Doctor(String doctorId) {
        this.dId = doctorId;
    }

    // 构造方法用于返回没有剩余名额的医生
    public Doctor(String doctorId, String name) {
        this.dId = doctorId;
        this.name = name;
    }

    // 构造方法用于返回有剩余名额的医生
    public Doctor(String doctorId, String name, Integer remainingSlots) {
        this.dId = doctorId;
        this.name = name;
        this.remainingSlots = remainingSlots;
    }

    // 构造函数
    public Doctor(String dId, String name, String password, String gender, String phone, String type, String department, int remainingSlots) {
        this.dId = dId;
        this.name = name;
        this.password = password;
        this.gender = gender;
        this.phone = phone;
        this.type = type;
        this.department = department;
        this.remainingSlots = remainingSlots;
    }

    // 构造函数
    public Doctor(String dId, String name, String password, String gender, String phone, String type, String department) {
        this.dId = dId;
        this.name = name;
        this.password = password;
        this.gender = gender;
        this.phone = phone;
        this.type = type;
        this.department = department;
    }

//    public Doctor() {}

}

